#include <stdlib.h>

#include "constantes_et_macros.h"

#include "resume_saisie.h"
#include "saisie_clavier_sdl.h"




void init_resume_saisie(struct resume_saisie* resume)
{
    resume->orientation = NEUTRE;
    resume->direction_tir = NEUTRE;
    resume->entree = FAUX;
    resume->utilisation_objet = 0;
    resume->quitte = FAUX;
}



void recolter_evenements(struct resume_saisie* resume)
{
    /* on remet a 0 tout ce qui n'a aucune raison de rester active */
    resume->utilisation_objet = 0;
    resume->entree = FAUX;
    resume->quitte = FAUX;
    /* version SDL */
    saisir_sdl(resume);
}



void init_resume_souris_echap(struct resume_souris_echap* resume)
{
    resume->clique = FAUX;
    resume->echap = FAUX;
    resume->x_souris = 0;
    resume->y_souris = 0;
}



void recolter_souris_echap(struct resume_souris_echap* resume)
{
    resume->clique = FAUX;
    resume->echap = FAUX;
    souris_echap_sdl(resume);
}
